﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using System.Text;
using EGym.Data;

namespace EGym.BL.DataGestor
{
    public class BaseGestor
    {
        #region Variáveis
        private DBDataContext db = null;
        #endregion

        #region Métodos


        #region Publicos
        public void Salvar()
        {
            DB.SubmitChanges(ConflictMode.FailOnFirstConflict);
        }
        #endregion

        #endregion

        #region Propriedades
        public DBDataContext DB
        {
            get
            {
                return db;
            }
            protected set
            {
                db = value;
            }

        }
        #endregion
    }
}